package com.pucong.gitee.database.backup.common.selfenum;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("删除枚举类")
public enum TreeType implements CommonEnum<Integer> {
    数据源(0, "数据源"),
    模式(1, "模式"),
    数据库(2, "数据库"),
    表(3, "表"),
    表sub(4,"表sub"),
    视图(5, "视图"),
    视图sub(6, "视图sub"),
    备份(7, "备份"),
    备份sub(8, "备份sub"),
    函数(9, "函数"),
    函数sub(10, "函数sub"),
    角色(11, "角色"),
    角色sub(12, "角色sub"),
    查询(13, "查询"),
    查询sub(14, "查询sub"),
    服务器(15, "服务器"),
    linux服务器(16, "linux服务器"),
    Windows服务器(17, "Windows服务器"),
    ftp服务(18, "ftp服务"),
    fastdfs服务器(19, "fastdfs服务器");

    @ApiModelProperty(value = "key",example = "0")
    private Integer key;

    @ApiModelProperty("描述")
    private String desc;

    TreeType(Integer key, String desc) {
        this.key = key;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.key;
    }

    @Override
    public String getName() {
        return this.name();
    }
}